#include <iostream>
#include <fstream>
using namespace std;
int main(int argc,char ** args) {
    if(argc != 3)
        cout<<"输入参数必须为3"<<endl;
    ifstream read_handle(args[1],ios::in|ios::binary);
    ofstream write_handle(args[2],ios::out|ios::binary);
    if(!read_handle){
        cout<<"无法打开文件"<<endl;
        return 0;
    }
    char c;
    while (read_handle.get(c)){
        write_handle.put(c);
    }
    write_handle.close();
    read_handle.close();
    return 0;
}